import request from '@/utils/request'

// 查询外来人口访问登记列表
export function listOutsiders(query) {
  return request({
    url: '/Outsiders/Outsiders/list',
    method: 'get',
    params: query
  })
}

// 查询外来人口访问登记详细
export function getOutsiders(id) {
  return request({
    url: '/Outsiders/Outsiders/' + id,
    method: 'get'
  })
}

// 新增外来人口访问登记
export function addOutsiders(data) {
  return request({
    url: '/Outsiders/Outsiders',
    method: 'post',
    data: data
  })
}

// 修改外来人口访问登记
export function updateOutsiders(data) {
  return request({
    url: '/Outsiders/Outsiders',
    method: 'put',
    data: data
  })
}

// 删除外来人口访问登记
export function delOutsiders(id) {
  return request({
    url: '/Outsiders/Outsiders/' + id,
    method: 'delete'
  })
}
